hvm: correct RTC time offset update error due to tm->tm_year
authorAnnie Li <annie.li@oracle.com>
Thu, 1 Mar 2012 16:29:59 +0000 (16:29 +0000)
committerAnnie Li <annie.li@oracle.com>
Thu, 1 Mar 2012 16:29:59 +0000 (16:29 +0000)
commitd9659850fbf929bed0b302323bf9465cd68492b9
tree47897a6ffb03a85af8da03b7d4f63ba377426b35
parentca92c5098f0d841ef937c56f0a34a86a87cd6437
hvm: correct RTC time offset update error due to tm->tm_year

tm->tm_year in rtc.c is year number offsetting from 1900. So it is
necessary to add the offset 1900 when calling mktime funtion in
Xen. Otherwise, the calculation result of mktime is incorrect.

Signed-off-by: Annie Li <annie.li@oracle.com>
Committed-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/rtc.c